package com.feicheng.persistence.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feicheng.persistence.entity.CardType;
import com.feicheng.persistence.model.CardTypeMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Mapper
public interface CardTypeMapper extends BaseMapper<CardType> {
    Page<CardTypeMain> getCardTypesByPage(Page<CardTypeMain> page, @Param(Constants.WRAPPER) QueryWrapper<CardTypeMain> wrapper);
    List<CardTypeMain> getCardTypes(@Param(Constants.WRAPPER) QueryWrapper<CardTypeMain> wrapper);

}
